package look_and_feel;

import org.jvnet.substance.skin.SubstanceRavenGraphiteLookAndFeel;

import javax.swing.*;
import java.awt.*;

/**
 * Date: Feb 20, 2009
 * Time: 1:11:21 AM
 * To change this template use File | Settings | File Templates.
 *
 * @author Jose Martin Rozanec;
 */
public class Walkthrough extends JFrame {
    public Walkthrough() {
        super("Sample app");
        this.setLayout(new FlowLayout());
        this.add(new JButton("button"));
        this.add(new JCheckBox("check"));
        this.add(new JLabel("label"));

        this.setSize(new Dimension(250, 80));
        this.setLocationRelativeTo(null);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

//  public static void main(String[] args) {
//    JFrame.setDefaultLookAndFeelDecorated(true);
//
//    SwingUtilities.invokeLater(new Runnable() {
//      public void run() {
//        look_and_feel.Walkthrough w = new look_and_feel.Walkthrough();
//        w.setVisible(true);
//      }
//    });

    //  }
    public static void main(String[] args) {
        JFrame.setDefaultLookAndFeelDecorated(true);
        try {
            UIManager.setLookAndFeel(new SubstanceRavenGraphiteLookAndFeel());
        } catch (Exception e) {
            System.out.println("Substance Raven Graphite failed to initialize");
        }
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                Walkthrough w = new Walkthrough();
                w.setVisible(true);
            }
        });
    }
}